package com.google.gwt.sample.contacts.server;

import com.google.gwt.sample.contacts.client.action.DeleteContactAction;
import com.google.gwt.sample.contacts.client.action.DeleteContactResponse;

import com.guit.client.command.action.CommandException;

public class DeleteContactHandler extends AbstractHandler<DeleteContactAction, DeleteContactResponse> {

    @Override
    public DeleteContactResponse handle(DeleteContactAction action) throws CommandException {
        return new DeleteContactResponse(dataUtil.deleteContacts(action.getIds()));
    }
}
